<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head>
        <link type="text/css" rel="stylesheet" href="dise-publicar.css"  target="head"/>
        <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
</h:head> 
<h:body>
		
        <p:commandLink styleClass="CerrarSesion" value="#{beanPublicar.link3}" action="#{beanPublicar.CerrarSesion}">
        <f:param name="productId" value="10" />
        </p:commandLink>
        <img src="logoucatolica.png"/>
        <center>
        	<h1 class="publicaciones">Google Maps</h1>
		</center>
		
		<h:form>
    		<p:growl id="growl" showDetail="true" /> 
    		<p:gmap id="gmap" center="4.570868, -74.29733299999998" zoom="6" type="HYBRID" model="#{beanMapa.simpleModel}" style="width:100%;height:400px">
        		<p:ajax event="overlaySelect" listener="#{beanMapa.onMarkerSelect()}" update="growl" />
    		</p:gmap>
		</h:form>
        
        <center>
            <a>
            	<p:commandButton value="Volver"  styleClass="styleAutenticarBoton" action="#{beanPublicar.menu()}"></p:commandButton>
            </a>
        </center>
</h:body> 
</html>